import { Module } from '@nestjs/common'
import { UserService } from './user.service'
import { UserController } from './user.controller'
import { PrismaModule } from 'src/prisma/prisma.module'
import { HttpModule } from '@nestjs/axios'
import { JwtModule } from '@nestjs/jwt'
import { jwtConstants } from './jwtConstants'

@Module({
  imports: [
    JwtModule.register({
      secret: jwtConstants.secret,
      signOptions: { expiresIn: '7d' }
    }),
    PrismaModule,
    HttpModule
  ],
  controllers: [UserController],
  providers: [UserService]
})
export class UserModule {}
